package lab01;

/**
 * Created by 李晓容 on 2017/10/9.
 */
public class Test13 {
    public static void main(String[] args) {
        int x;
        int units;
        int ten;
        int hundred;
        for (x=100;x<1000;x++){
            units=x%10;
            ten=x/10%10;
            hundred=x/100%10;
            if (x==units*units*units+ten*ten*ten+hundred*hundred*hundred){
                System.out.println("水仙花数是："+x);
            }
        }


    }
}
